<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://www.hx.com/tags" prefix="hx" %>
<%   String path = request.getContextPath();   
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
	<title>无标题文档</title>
	<link href="css/style.css" rel="stylesheet" type="text/css">
	<meta name="viewport" content="width=device-width, initial-scale=1.0,,user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">
    <link href="/bootstrapDemo/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="/bootstrapDemo/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
     <script src="/bootstrapDemo/js/jquery.js"></script>
 	<script src="/bootstrapDemo/bootstrap/js/bootstrap.min.js"></script>
 	<script src="/bootTest/js/my.js"></script>
	<hx:ajax jquery="true"/>
	<style type="text/css">
		body{
			background-color: white;
		}
		a:HOVER {
				color: red;
			}
	</style>
	<script type="text/javascript">
		function delteOrderAjax(id){
			$hx.service("ol.deleteOrderAjax",[id],function(result2){
				if(result2){
					top.document.getElementById("mainFrame").src="<%=basePath%>/online/getAllOnlineList.action";
				}else{
					alert("删除失败！");
				}
			});
		}
	</script>
	</head>
	<body>
		<ol class="breadcrumb">
		 <li><a href="#">会员管理</a></li>
		  <li class="active">预约订单</li>
		</ol>
		<div>
		<div>
			
		</div>
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
			class="thetable" style="font-size: 13px;margin-top: 10px;">
			<!-- <tr>
				<td colspan="5">
					未完成订单    已完成订单
				</td>
			</tr> -->
			<tr align="center">
				<td colspan="5">
					 <s:iterator value="onlinelist" id="online" status="statu">
				      <div style="width: 90%;background-color:#F0F0F0;">
					   	<div class="panel-heading">
				          <div class="panel-title" align="left" style="float: left;margin-left: 10px;">订单${statu.index+1}</div> 
				          <div  style="float: right;margin-right: 10px;">
				          	<a class="btn" href="javascript:void"  onclick="delteOrderAjax('<s:property value="#online.id"/>')" style="font-weight: bold;">删除</a>
				          </div>
				        </div>
					  	<table class="table table-bordered" style="font-size: 12px;">
						 	 <tr style="background-color: white;border: 0">
								<td >联系人</td>		
								<td ><s:property value="#online.OUsername"/></td>		
								<td >联系电话</td>		
								<td ><s:property value="#online.OPhone"/></td>		
							 </tr>
						 	 <tr style="background-color: white;border: 0">
								<td >预达日期</td>		
								<td ><s:date name="%{#online.OArriveDate}"	 format="yyyy-MM-dd" /> 
								</td>		
								<td >预离日期</td>		
								<td >
								<s:date name="%{#online.OLeaveDate}"	 format="yyyy-MM-dd" /> 
								</td>		
							 </tr>
						 	 <tr style="background-color: white;border: 0">
								<td >入住人数</td>		
								<td ><s:property value="#online.OUserno"/>人</td>		
								<td >预约类项目</td>		
								<td ><s:property value="#online.OHorseType"/></td>		
							 </tr>
						 	 <tr style="background-color: white;border: 0">
								<td >备注信息</td>		
								<td ><s:property value="#online.ODesc"/></td>
								<td >预订时间</td>		
								<td ><s:date name="%{#online.OPretime}"	 format="yyyy-MM-dd hh:mm:ss" /></td>			
							 </tr>
								
						  </table>
						</div>
       </s:iterator>
				</td>
			</tr>
			<tr align="center" style="background-color: #cccccc;height: 30px;line-height: 30px;font-size: 14px;font-weight: bold;cursor: pointer;">
				<td colspan="2">当前第${pageData.startPage}页      共${pageData.totlePage}页</td>
				<td><a href="<%=basePath%>/online/getAllOnlineListByOpId.action?online.OpenID=${openid}&currentPage=${pageData.currentPage-1}">上一页</a>   <a href="<%=basePath%>/online/getAllOnlineListByOpId.action?online.OpenID=${openid}&currentPage=${pageData.currentPage+1}">下一页</a></td>
				<td></td>
				<td colspan="2">当前第${pageData.startNum}-${pageData.endNum}条    共${pageData.totle}条</td>
			</tr>
		</table>
	</body>
</html>

